package com.dmap.admin.vo.backgroundv3;

import com.dmap.admin.po.FirmwareVersion;

import java.io.Serializable;

/**
 * @author: zmh
 * @create: 18-8-22
 * @description: ${description}
 **/
public class FirmwareVersionSelectVo implements Serializable {
    /**
     * 主键id
     * 表字段 : firmware_version.id
     */
    private String firmwareVersionId;

    /**
     * 硬件编号
     * 表字段 : firmware_version.firmware_number
     */
    private String firmwareNumber;

    /**
     * 最小版本
     * 表字段 : firmware_version.min_version
     */
    private String minVersion;

    /**
     * 最新版本
     * 表字段 : firmware_version.new_version
     */
    private String newVersion;

    /**
     * 描述
     * 表字段 : firmware_version.description
     */
    private String description;

    /**
     * 表字段 : firmware_version.description_en
     */
    private String descriptionEn;

    /**
     * 表字段 : firmware_version.min_version_code
     */
    private String minVersionCode;

    /**
     * 表字段 : firmware_version.new_version_code
     */
    private String newVersionCode;

    /**
     * 下载地址
     * 表字段 : firmware_version.url
     */
    private String url;

    /**
     * 表字段 : firmware_version.md5
     */
    private String md5;

    /**
     * app上传时间，时间戳
     * 表字段 : firmware_version.upload_time
     */
    private Long uploadTime;

    /**
     * 版本json文件存放的相对路径
     * 表字段 : firmware_version.json_url
     */
    private String jsonUrl;

    /**
     * 状态：1正常，2禁用
     * 表字段 : firmware_version.status
     */
    private Integer status;

    /**
     * 创建时间
     * 表字段 : firmware_version.create_time
     */
    private Long createTime;

    /**
     * 最后更新时间
     * 表字段 : firmware_version.update_time
     */
    private Long updateTime;

    public FirmwareVersionSelectVo() {
    }

    public FirmwareVersionSelectVo(FirmwareVersion firmwareVersion) {
        if (firmwareVersion.getId() != null) {
            this.firmwareVersionId = firmwareVersion.getId() + "";
        }
        if (firmwareVersion.getFirmwareNumber() != null) {
            this.firmwareNumber = firmwareVersion.getFirmwareNumber();
        }
        if (firmwareVersion.getMinVersion() != null) {
            this.minVersion = firmwareVersion.getMinVersion();
        }
        if (firmwareVersion.getNewVersion() != null) {
            this.newVersion = firmwareVersion.getNewVersion();
        }
        if (firmwareVersion.getDescription() != null) {
            this.description = firmwareVersion.getDescription();
        }
        if (firmwareVersion.getDescriptionEn() != null) {
            this.descriptionEn = firmwareVersion.getDescriptionEn();
        }
        if (firmwareVersion.getMinVersionCode() != null) {
            this.minVersionCode = firmwareVersion.getMinVersionCode();
        }
        if (firmwareVersion.getNewVersionCode() != null) {
            this.newVersionCode = firmwareVersion.getNewVersionCode();
        }
        if (firmwareVersion.getUrl() != null) {
            this.url = firmwareVersion.getUrl();
        }
        if (firmwareVersion.getMd5() != null) {
            this.md5 = firmwareVersion.getMd5();
        }
        if (firmwareVersion.getUploadTime() != null) {
            this.uploadTime = firmwareVersion.getUploadTime();
        }
        if (firmwareVersion.getJsonUrl() != null) {
            this.jsonUrl = firmwareVersion.getJsonUrl();
        }
        if (firmwareVersion.getStatus() != null) {
            this.status = firmwareVersion.getStatus();
        }
        if (firmwareVersion.getCreateTime() != null) {
            this.createTime = firmwareVersion.getCreateTime();
        }
        if (firmwareVersion.getUploadTime() != null) {
            this.updateTime = firmwareVersion.getUpdateTime();
        }

    }

    public String getFirmwareVersionId() {
        return firmwareVersionId;
    }

    public void setFirmwareVersionId(String firmwareVersionId) {
        this.firmwareVersionId = firmwareVersionId;
    }

    public String getFirmwareNumber() {
        return firmwareNumber;
    }

    public void setFirmwareNumber(String firmwareNumber) {
        this.firmwareNumber = firmwareNumber;
    }

    public String getMinVersion() {
        return minVersion;
    }

    public void setMinVersion(String minVersion) {
        this.minVersion = minVersion;
    }

    public String getNewVersion() {
        return newVersion;
    }

    public void setNewVersion(String newVersion) {
        this.newVersion = newVersion;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescriptionEn() {
        return descriptionEn;
    }

    public void setDescriptionEn(String descriptionEn) {
        this.descriptionEn = descriptionEn;
    }

    public String getMinVersionCode() {
        return minVersionCode;
    }

    public void setMinVersionCode(String minVersionCode) {
        this.minVersionCode = minVersionCode;
    }

    public String getNewVersionCode() {
        return newVersionCode;
    }

    public void setNewVersionCode(String newVersionCode) {
        this.newVersionCode = newVersionCode;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public Long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getJsonUrl() {
        return jsonUrl;
    }

    public void setJsonUrl(String jsonUrl) {
        this.jsonUrl = jsonUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
}
